package org.example.stock;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 库存服务接口
 * name:指定调用rest接口所对应的服务名
 * path:指定调用rest接口所在的StockController指定的@RequestMapping
 */

@FeignClient(name = "product-service",path = "/product")
public interface ProductOpenFeignService {
    //声明需要调用的rest接口对应的方法
    /**
     * 库存扣减
     * @return
     */
    @GetMapping("/delete{id}")
    String deleteProduct( @PathVariable("id")String id);

}
